package com.it.service.Impl;

import com.it.mapper.TeamMapper;
import com.it.pojo.Team;
import com.it.service.TeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamServiceImpl implements TeamService {

    @Autowired
    private TeamMapper teamMapper;

    @Override
    public List<Team> getAll(Integer cls) {
        return teamMapper.getAll(cls);
    }

    @Override
    public void add(Team team) {
        teamMapper.add(team);
    }

    @Override
    public void delete(Integer id) {
        teamMapper.delete(id);
    }

    @Override
    public void update(Team team) {
        teamMapper.update(team);
    }
}
